package com.htj.erp.dao;
import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.htj.erp.model.jpa.HRecvAddress;

/**
 * 
 *
 * HRecvAddressDao
 * h_recv_address dao 层
 * 使用JPA分页查询 一般继承com.kedacom.security.dao.BaseJpaDao
 *  public Page<PO> findByXXX(String xxx, Pageable pageable);
 * chenghongtao
 * 2016-11-04 14:23:34
 * HTJ
 * @version 1.0.0
 *
 */
@Repository
public interface HRecvAddressDao extends QualiBaseDao<HRecvAddress> {
	
	@Query(" from HRecvAddress where cusName = :cusName or cusNameShort= :cusName ")
	List<HRecvAddress> findByCusName(@Param("cusName")String cusName);
	
	List<HRecvAddress> findByCusAddress(String cusAddress);
}